//
//  ViewController.m
//  JPSafeViewDemo
//
//  Created by mac on 2018/5/29.
//  Copyright © 2018年 carpenter. All rights reserved.
//

#import "ViewController.h"
#import "JPTopSubContentView.h"
#import "JPBottomSafeSubContentView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
 
    JPTopSubContentView * top = [JPTopSubContentView new];
    top.backgroundColor = [UIColor blueColor];
    [self.view addSubview:top];
    [top mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.right.mas_equalTo(0);
    }];
    
    
    JPBottomSafeSubContentView * botton = [JPBottomSafeSubContentView new];
    botton.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];
    [self.view addSubview:botton];
    [botton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.bottom.right.mas_equalTo(0);
    }];
}
 
@end
